var logout = function() {
    location.href = "logout";
}

var isNull = function(val) {
    if (val == null) {
        return "";
    }else{
        return val;
    }
}


var btn = function(val){
    if (val == "0"){
        return "<a href='#' class='img3 refuse'>拒绝</a><a href='#' class='img2 adopt'>通过</a>";
    }
    if (val == "1"){
        return "<a href='#' class='img1 refuse'>拒绝</a><a href='#' class='img2 blue adopt'>通过</a>";
    }
    if (val == "2"){
        return "<a href='#' class='img3 red refuse'>拒绝</a><a href='#' class='img4 adopt'>通过</a>";
    }
}


var logout = function(){
    location.href = "logout";
}


var ifnull = function(value){
    if (value==null){
        return "";
    }
    return value;
}



